class CreateVariantHasAssets < ActiveRecord::Migration
  def change
    create_table :variant_has_assets, :force => true, :id => false do |t|
      t.references :variant, :null => false
      t.references :product_asset, :null => false
    end

    add_index :variant_has_assets, :variant_id
    add_index :variant_has_assets, :product_asset_id
  end
end
